AudioProfileType enum Null safety

音质档位

Constants

def → const AudioProfileType

默认音质

服务器下发或客户端已设置的 ChannelProfile 的音质配置

const AudioProfileType(0)
fluent → const AudioProfileType

流畅音质

单声道,采样率为 16 kHz,编码码率为 32 Kbps。 流畅优先、低功耗、低流量消耗,适用于大部分游戏场景,如小队语音、组队语音、国战语音等。

const AudioProfileType(1)
hd → const AudioProfileType

双声道音乐音质

采样率为 48 kHz,编码码率为 128 kbps。 超高音质,同时延时、功耗和流量消耗相对较大,适用于连麦 PK 等音乐场景。 游戏场景不建议使用。

const AudioProfileType(3)
hdMono → const AudioProfileType

单声道音乐音质

采样率为 48 kHz,编码码率最大值为 64 Kbps。

const AudioProfileType(5)
standard → const AudioProfileType

单声道标准音质

采样率为 24 kHz,编码码率为 48 Kbps。 适用于对音质有一定要求的场景,同时延时、功耗和流量消耗相对适中,适合教育场景和狼人杀等游戏。

const AudioProfileType(2)
standardStereo → const AudioProfileType

双声道标准音质

采样率为 48 KHz,编码码率最大值为 80 Kbps。

const AudioProfileType(4)
values → const List<AudioProfileType>

A constant List of the values in this enum, in order of their declaration.

const List<AudioProfileType>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited